<template>
  <div class="rule" id="rule" :style="{backgroundImage: 'url('+ cdnUrl + '/assets/index/bg.png' + ')'}">
    <div class="rule-con" :style="{backgroundImage: 'url('+ cdnUrl + '/assets/index/rule-border.png' + ')'}">
      <img class="con-title" :src="cdnUrl + '/assets/index/rule-title.png'" alt="" />
      <div class="con">
        <p class="title">参与方式: </p>
        <p class="cons">关注“和美南开”官方微信平台，点击菜单栏“答题红包”进入活动。</p>
        <p class="title">活动规则: </p>
        <p class="cons">1、"南开文明学院"答题挑战赛共分"初级挑战赛"、"中级挑战赛"、"高级挑战赛"三个等级。</p>
        <p class="cons">2、每个等级挑战赛中题目全部答对即有机会赢得现金红包。</p>
        <div class="con-btn" @click="goIndex">
          <img :src="cdnUrl + '/assets/index/rule-btn.png'" alt="" />
        </div>
        <p class="bottom">本活动最终解释权归中共天津市南开区委网信办、</p>
        <p class="bottom">南开区创建全国文明城区工作指挥部办公室所有。</p>
      </div>
    </div>
  </div>
</template>

<script>
import { cdnUrl } from '../service/env'
export default {
  name: 'Rule',
  props: {
    hide: Function
  },
  data () {
    return {
      cdnUrl: cdnUrl
    }
  },
  methods: {
    goIndex () {
      this.$emit('hide')
    }
  }
}
</script>

<style scoped lang="scss">
.rule{
  width: 100%;
  height: 100%;
  // background: url("../assets/index/bg.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  .rule-con{
    width: 80%;
    height: 392.5px;
    // background: url("../assets/index/rule-border.png") no-repeat;
    background-size: 100% 100%;
    .con-title{
      width: 77%;
      margin: -26px auto 0;
    }
    .con{
      width: 93%;
      height: 350px;
      margin: 10px auto 15px;
      font-size: 14px;
      color: #000000;
      overflow: hidden;
      .title{
        font-weight: 600;
        text-align: center;
        margin: 10px 0;
      }
      .cons{
        line-height: 26px;
      }
      .con-btn{
        width: 44.4%;
        height: 34px;
        margin: 10px auto;
        img{
          width: 100%;
          height: 100%;
        }
      }
      .bottom{
        font-size: 10px;
        text-align: center;
        margin-bottom: 6px;
      }
    }
  }
}
</style>
